<div ng-controller="shopDeliveryCtrl" ng-init="inint()">
    <div class="bg-light lter b-b wrapper-md ng-scope">
        <h4 class="m-n font-thin">配送管理</h4>
    </div>
    <div class="wrapper-md">
        <div class="panel panel-body">
            <div class="row wrapper">
                <div class="col-sm-9">
                </div>
                <div class="col-sm-3">
                    <div class=" pull-right">
                        <a class="btn btn-sm btn-info" ng-click="" ui-sref="app.shopDeliveryAdd" >添加配送信息</a>
                    </div>
                </div>
                <div class="clearfix"></div>
            </div>
            <div class="table-responsive">
                <table class="table table-striped b-t b-light">
                        <thead>
                            <tr>
                                <th>配送类型</th>
                                <th>最小配送距离</th>
                                <th>最大配送距离</th>
                                <th>配送费用</th>
                                <th>门槛类型</th>
                                <th>满减金额</th>
                                <th>配送工具</th>
                                <th width="200">操作</th>
                            </tr>
                        </thead>
                        <tbody>
                             <tr ng-if="shopDeliveryList.length>0" ng-repeat="item in shopDeliveryList">
                                <td>
                                    <span ng-if="item.type==0">一定距离内配送</span>
                                    <span ng-if="item.type==1">同城配送</span>
                                    <span ng-if="item.type==2">市内配送</span>
                                    <span ng-if="item.type==3">省内配送</span>
                                    <span ng-if="item.type==4">不限</span>
                                </td>
                                <td>
                                   <span ng-if="item.minDelivery==0">店铺附近起</span>
                                   <span ng-if="item.minDelivery!=0">{{item.minDelivery}}公里</span>
                                </td>
                                <td>
                                    {{item.maxDelivery}}公里
                                </td>
                                <td>
                                    {{item.cost}}
                                </td>
                                <td>
                                    <span ng-if="item.threshold==0">不限制</span>
                                    <span ng-if="item.threshold==1">满减</span>
                                </td>
                                <td>
                                    <span ng-if="item.threshold==0">无</span>
                                    <span ng-if="item.threshold==1">{{item.fullPriceReduction}}</span>
                                </td>
                                <td>
                                    <span ng-if="item.vehicle==0">自行车</span>
                                    <span ng-if="item.vehicle==1">电动车</span>
                                    <span ng-if="item.vehicle==2">公交车</span>
                                    <span ng-if="item.vehicle==3">汽车</span>
                                    <span ng-if="item.vehicle==4">其他</span>
                                </td>
                                <td >
                                    <a class="btn btn-sm btn-info"  ui-sref="app.shopDeliveryEdit({id:item.id})">修改</a>
                                    <a class="btn btn-sm btn-danger"  ng-click="delete(item.id)" >删除</a>
                                </td>
                            </tr>
                        </tbody>
                </table>
                <div ng-if="shopDeliveryList.length<=0 && !app.loading" class="padder-v text-center">
                    <span class="h6">~未搜索到任何数据~</span>
                </div>
                <div>
                    <circle-loading ng-if="app.loading"></circle-loading>
                </div>
            </div>
            <footer class="panel-footer">
                <div class="row">
                    
                </div>
            </footer>
        </div>
    </div>

</div>